
package org.springxrsk.modules.students.service.impl;

import org.springxrsk.modules.students.pojo.entity.QyStudentCardsEntity;
import org.springxrsk.modules.students.pojo.vo.QyStudentCardsVO;
import org.springxrsk.modules.students.excel.QyStudentCardsExcel;
import org.springxrsk.modules.students.mapper.QyStudentCardsMapper;
import org.springxrsk.modules.students.service.IQyStudentCardsService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 学员课卡管理 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyStudentCardsServiceImpl extends BaseServiceImpl<QyStudentCardsMapper, QyStudentCardsEntity> implements IQyStudentCardsService {

	@Override
	public IPage<QyStudentCardsVO> selectQyStudentCardsPage(IPage<QyStudentCardsVO> page, QyStudentCardsVO qyStudentCards) {
		return page.setRecords(baseMapper.selectQyStudentCardsPage(page, qyStudentCards));
	}


	@Override
	public List<QyStudentCardsExcel> exportQyStudentCards(Wrapper<QyStudentCardsEntity> queryWrapper) {
		List<QyStudentCardsExcel> qyStudentCardsList = baseMapper.exportQyStudentCards(queryWrapper);
		//qyStudentCardsList.forEach(qyStudentCards -> {
		//	qyStudentCards.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyStudentCards.getType()));
		//});
		return qyStudentCardsList;
	}

}
